Get Municipality
Municipalities
Get Municipality
Retrieve a specific municipality by ID
GET
Get Municipality
Documentation Index
Fetch the complete documentation index at: https://mintlify.com/LizandroCanul/back_sdo/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Retrieves detailed information for a specific municipality in Yucatan state using its unique identifier.Authentication
This endpoint requires authentication using a Bearer token.Request
Path Parameters
Unique identifier of the municipalityMust be a valid integer between 1 and 106Example:
51 for MéridaBase URL
Response
Returns a single municipality object with geographic coordinates.Unique identifier for the municipality
Official name of the municipalityExample:
Mérida, Valladolid, TizimínGeographic coordinates in GeoJSON Point format (SRID 4326 / WGS 84)
Indicates if the municipality is active in the systemDefault:
trueSuccess Response
Example Requests
Common Municipality IDs
- Mérida (capital):
51 - Valladolid:
103 - Tizimín:
97 - Progreso:
60 - Ticul:
90
Error Handling
Invalid ID Format
The endpoint usesParseIntPipe validation, so non-numeric IDs will return a 400 error:
Municipality Not Found
If the ID doesn’t exist in the database, the endpoint returnsnull. Handle this in your application:
Notes
- The endpoint returns
nullif no municipality is found with the given ID - Only IDs between 1 and 106 are valid (corresponding to Yucatan’s 106 municipalities)
- Geographic coordinates represent the central point of each municipality
- This is a read-only endpoint; municipalities cannot be modified via the API
- Inactive municipalities may still be retrieved if you have their ID